package com.youko.backstage.mapper.commodity;


import com.youko.backstage.bean.commodity.CommoditySpuSpec;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CommoditySpuSpecMapper {
    /**
     * 插入
     * @param commoditySpuSpec
     */
    void insertSpuSpec(CommoditySpuSpec commoditySpuSpec);

    /**
     * 根据spuId查拥有的规格
     * @param spuId
     * @return
     */
    List<CommoditySpuSpec> selectSpuSpecBySpuId(int spuId);

}
